package org.alex.jdk8.lambda;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class CompareT2 {
	public static void main(String[] args) {
		List<String> list = Arrays.asList("root", "su", "super", "clar", "carl");
		Collections.sort(list, (a, b) -> a.compareTo(b));
		System.out.println(list);
	}
}
